package com.zjj.day3.employeeTest2;

/**
 * @author zhoujunjie
 * @desc Employee
 * @date 2025/4/21
 */

class Manager extends Employee {
    private double bonus;

    public Manager(String name, String id, double pay, double bonus) {
        super(name, id, pay);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public void addSalary() {
        this.pay *= 1.1;
    }
}